Automation Examples

Automation can be initiated in two basic ways:

  1. via a batch file
  2. via a Desktop or Start Menu shortcut (create a LFNit! shortcut, then change the Target property under the Short Cut tab)

Either way, you need to be careful to quote any long filenames e.g.

"c:\program files\LFNit\LFNit.exe" c:\ /a d:\ /a /g /e

This simple line runs LFNit! from a shortcut in the StartUp folder to save long filenames on all drives and then exits (usually used when the computer is booted):

Omitting either the /g or /e options or putting them in the wrong order will prevent automation from working.

Here are some more LFNit! examples:

Run LFNit just in the My Documents folder and then exit

lfnit.exe "c:\My Documents" /a /g /e


Run LFNit just in the Windows folder and then wait for further tasks

lfnit.exe c:\windows /a /g

See also

Command line options